import React from "react";
import { Switch, HashRouter as Router, Route } from "react-router-dom";
import { Login, Home } from "./views";
import PrivateRoute from "./components/privateRouter/index";

export default class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <Router>
        <Switch>
          <Route exact component={Login} path="/" />
          <PrivateRoute component={Home} path="/home" />
        </Switch>
      </Router>
    );
  }
}
